package cn.lg.soar.general.entity;

import cn.lg.soar.database.base.entity.BaseEntity;
import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 页面位置
 * @author luguoxiang
 * @since 2023-03-19
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
@Getter
@Setter
@Accessors(chain = true)
@ApiModel(value = "WebPosition", description = "页面位置")
@TableName(value = "lg_general_web_position", autoResultMap = true)
public class WebPosition extends BaseEntity {


    @ExcelIgnore
    @ApiModelProperty(value = "id")
    @TableId
    private Long id;

    @ExcelProperty(value = "位置编码")
    @ApiModelProperty(value = "位置编码")
    private String code;

    @ExcelProperty(value = "名称")
    @ApiModelProperty(value = "名称")
    private String name;

    @ExcelProperty(value = "宽度")
    @ApiModelProperty(value = "宽度")
    private Integer width;

    @ExcelProperty(value = "高度")
    @ApiModelProperty(value = "高度")
    private Integer height;

    @ExcelProperty(value = "描述")
    @ApiModelProperty(value = "描述")
    private String description;

    @JsonIgnore
    @Override
    public Serializable primaryKey() {
        return this.id;
    }

}
